package br.com.pedido.www;

public class FornecedorBServicoPortTypeProxy implements br.com.pedido.www.FornecedorBServicoPortType {
  private String _endpoint = null;
  private br.com.pedido.www.FornecedorBServicoPortType fornecedorBServicoPortType = null;
  
  public FornecedorBServicoPortTypeProxy() {
    _initFornecedorBServicoPortTypeProxy();
  }
  
  public FornecedorBServicoPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initFornecedorBServicoPortTypeProxy();
  }
  
  private void _initFornecedorBServicoPortTypeProxy() {
    try {
      fornecedorBServicoPortType = (new br.com.pedido.www.FornecedorBServicoServiceLocator()).getFornecedorBServicoServicePort();
      if (fornecedorBServicoPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)fornecedorBServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)fornecedorBServicoPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (fornecedorBServicoPortType != null)
      ((javax.xml.rpc.Stub)fornecedorBServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public br.com.pedido.www.FornecedorBServicoPortType getFornecedorBServicoPortType() {
    if (fornecedorBServicoPortType == null)
      _initFornecedorBServicoPortTypeProxy();
    return fornecedorBServicoPortType;
  }
  
  public br.com.pedido.www.FornecedorBPrecoServicoResponse verificarPrecoMaterial(br.com.pedido.www.FornecedorBPrecoServicoRequest params) throws java.rmi.RemoteException{
    if (fornecedorBServicoPortType == null)
      _initFornecedorBServicoPortTypeProxy();
    return fornecedorBServicoPortType.verificarPrecoMaterial(params);
  }
  
  public br.com.pedido.www.FornecedorBRequisicaoServicoResponse efetuarRequisicaoDeCompra(br.com.pedido.www.FornecedorBRequisicaoServicoRequest params) throws java.rmi.RemoteException{
    if (fornecedorBServicoPortType == null)
      _initFornecedorBServicoPortTypeProxy();
    return fornecedorBServicoPortType.efetuarRequisicaoDeCompra(params);
  }
  
  
}